package com.qf.login.service.impl;

import com.qf.login.service.TokenService;
import org.springframework.stereotype.Service;

@Service
public class MyTokenServiceImpl implements TokenService {
    @Override
    public String createToken(String username, Integer time) {
        return "aaa.bbb.ccc";
    }

    @Override
    public boolean checkToken(String token) {
        if ("aaa.bbb.cc".equals(token)){
            return true;
        }else {
            return false;
        }
    }
}
